package com.zy.serivice.impl;

import com.zy.bean.TAdminExample;
import com.zy.bean.TAdminRole;
import com.zy.bean.TAdminRoleExample;
import com.zy.mapper.TAdminMapper;
import com.zy.mapper.TAdminRoleMapper;
import com.zy.service.TAdminRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zy 690748807@qq.com
 * @Description: TODO
 * @Date: 2024/1/13 17:15
 * @Version: 1.0
 * @name 方法名字：
 */
@Service
public class TAdminRoleServiceImpl implements TAdminRoleService {
    @Autowired
    TAdminRoleMapper tAdminRoleMapper;




    @Override
    public int instRoleIdByAdminid(TAdminRole tAdminRole) {
        return tAdminRoleMapper.insertSelective(tAdminRole);
    }

    @Override
    public int saveAdminRole(Integer[] roleId, String adminId) {
        int i = tAdminRoleMapper.saveAdminRole(roleId, adminId);
        return i;


    }

    @Override
    public void delAdminid(String adminId) {
        tAdminRoleMapper.delAdminid(adminId);
    }

    @Override
    public int delAminRole(Integer[] roleId, String adminId) {
        return  tAdminRoleMapper.delAminRoleId(roleId,adminId);

    }


}
